<Query Kind="Program" />

void Main()
{
	var list = new List<Model>(){
		new Model("Tomcat","1"),
		new Model("Tomcat","2"),
		new Model("Lili","3")
	};
	
	var result = list.GroupBy(model=>{return model.Name;});
	Console.WriteLine(result);
}

// Define other methods and classes here
private class Model{
	public Model(String name,String id){
		this.Name = name;
		this.Id= id;
	}

	public String Name{get;set;}
	public String Id{get;set;}
}